// 用户是否开启了动画减弱功能
export function isPrefersReducedMotion(): boolean {
  if (window.matchMedia) {
    return window.matchMedia('(prefers-reduced-motion)').matches === true
  }
  return false
}
